package com.eastfair.auth.hystrix;

import com.eastfair.auth.api.AuthServiceFeign;
import com.eastfair.auth.api.UserAccountServiceFeign;
import com.eastfair.auth.dto.OrganizationDTO;
import com.eastfair.auth.dto.OrganizationRoleDto;
import com.eastfair.auth.dto.UserAccountDto;
import com.eastfair.auth.dto.UserOrganizationDTO;
import com.eastfair.auth.entity.Organization;
import com.eastfair.auth.entity.UserAccount;
import com.eastfair.auth.entity.UserOrganization;
import com.eastfair.auth.vo.ResourceOrganizationVo;
import com.eastfair.auth.vo.UserAccountVo;
import com.eastfair.core.base.R;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * 用户API熔断
 *
 * @author zuihou
 * @date 2019/07/23
 */
@Slf4j
@Component
public class UserAccountApiFallback implements UserAccountServiceFeign {
    @Override
    public R<UserAccount> get(Long userId) {
        return R.timeout();
    }

    @Override
    public R<List<UserAccountVo>> querySimpleByIds(UserAccountDto userAccountDto) {
        return R.timeout();
    }

    @Override
    public R<UserAccountVo> addAdminUser(UserAccountDto userAccountDto) {
        return R.timeout();
    }


    @Override
    public R<UserAccount> queryOfPhoneOrEmail(String mobile, String email) {
        return R.timeout();
    }

    @Override
    public R<UserAccountVo> register(UserAccountDto userAccountDto) {
        return R.timeout();
    }

    @Override
    public R<String> test() {
        return R.timeout();
    }

    @Override
    public R<UserAccountVo> initRole(UserAccountDto userAccountDto) {
        return R.timeout();
    }

    @Override
    public R<Boolean> isPermission(Long userId, String[] permission) {
        return R.timeout();
    }

    @Override
    public R<Boolean> updateCorrelationById(UserAccountDto userAccountDto) {
        return R.timeout();
    }

    @Override
    public R<UserAccountVo> saveCompanyUser(UserAccountDto userAccountDto) {
        return R.timeout();
    }

    @Override
    public R<Boolean> updateById(UserAccountDto userAccountDto) {
        return R.timeout();
    }


}
